package tom.spring.cloud.stream.receiver;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * 消费者 @StreamListener @SendTo使用
 * @author ZHUFEIFEI
 */
@SpringBootApplication
public class ConsumerApplication {
    public static void main(String[] args) {
        String[] defArgs = new String[args.length + 1];
        defArgs[args.length] = "--spring.profiles.active=consumer";
        SpringApplication.run(ConsumerApplication.class, defArgs);
    }
}
